import request from '@/utils/request'

// 巡检列表
export function inspection_list(data) {
    return request({
        url: '/system/inspection/list',
        method: 'get',
        params: data
    })
}

// 巡检-阈值列表
export function threshold_list(data) {
    return request({
        url: '/system/dict/data/api/byDictType',
        method: 'get',
        params: data
    })
}

// 巡检-用户列表
export function user_list(data) {
    return request({
        url: '/system/user/list',
        method: 'get',
        params: data
    })
}

// 巡检-工单流程列表
export function businessplate_list(data) {
    return request({
        url: '/activitiservice/jeecg-boot/activiti/models/listAllByBusinessPlate',
        method: 'get',
        params: data
    })
}

// 巡检-启用/停用
export function update_status(data) {
    return request({
        url: '/system/inspection/updateStatus',
        method: 'post',
        data: data
    })
}
// 巡检-删除校验
export function delete_inspection_check(data) {
    return request({
        url: '/system/inspection/checkRemove',
        method: 'post',
        data: data
    })
}
// 巡检-删除
export function delete_inspection(data) {
    return request({
        url: '/system/inspection/remove',
        method: 'post',
        data: data
    })
}

// 巡检-新增
export function add_inspection(data) {
    return request({
        url: '/system/inspection/add',
        method: 'post',
        data: data
    })
}

// 巡检-详情
export function info_inspection(data) {
    return request({
        url: '/system/inspection/getInfo',
        method: 'get',
        params: data
    })
}

// 巡检-编辑
export function edit_inspection(data) {
    return request({
        url: '/system/inspection/edit',
        method: 'post',
        data: data
    })
}

// 巡检历史揭露列表
export function record_list(data) {
    return request({
        url: '/system/record/list',
        method: 'get',
        params: data
    })
}



// 备份管理列表
export function backup_list(data) {
    return request({
        url: '/system/backup/list',
        method: 'get',
        params: data
    })
}